package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Food;
import com.sky.result.PageResult;

import java.util.List;

public interface FoodService {
    //获取所有膳食
    public List<Food> getAll();
    //分页查询膳食
    PageResult pageQuery(FoodPageQueryDTO foodPageQueryDTO);
    //根据类别查询药膳
    List<Food> getByCategory(Long category);
    //根据名称查询药膳
    List<Food> getByName(FoodNameDTO foodName);
    //添加用户的搜索历史
    void addHistory(HistoryDTO historyDTO);
    //查询用户的搜索历史
    List<String> getHistoryById(HistoryDTO historyDTO);
    //获取搜索建议
    List<SuggestionsDTO> getSuggestions(SuggestionsDTO suggestionsDTO);
    //药膳的展示与不展示
    void startOrStop(Long status, Long id);
    //管理端新增药膳
    void addFood(AddFoodDTO addFoodDTO);
    //根据ID获取膳食信息
    Food selectById(Long id);
    //修改膳食信息
    void updateFood(UpdateFoodDTO updateFoodDTO);
    //用户新增药膳
    void userAddFood(AddFoodDTO addFoodDTO);
    //根据ID删除药膳
    void deleteFood(Long id);
    //用户端根据ID获取膳食
    Food getFoodById(Long id);
    //用户端获取膳食总数
    Integer getCount();
}

